<template>
    <van-list
            v-model="loading"
            :finished="finished"
            finished-text="没有更多了">
        <van-cell v-for="item in arr" :key="item" :title="item" @click="cellClick(item)"/>
    </van-list>
</template>

<script>
    export default {
        name: "List",
        data() {
            return {
                list: [],
                loading: false,
                finished: true,
            };
        },
        props: ['arr'],
        methods: {
            cellClick(item) {
                this.$emit('cellClick', item)
            }
        },
    }
</script>

<style scoped>

</style>